package com.cardbaobao.cardbabyclient.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Jiangzx on 15:01.
 */

public class ShowText implements Parcelable{
    private String textLeft;
    private String textRight;
    private int type;

    public ShowText(int type, String textLeft, String textRight){
        this.type=type;
        this.textLeft = textLeft;
        this.textRight = textRight;
    }

    protected ShowText(Parcel in) {
        type=in.readInt();
        textLeft = in.readString();
        textRight = in.readString();
    }

    public static final Creator<ShowText> CREATOR = new Creator<ShowText>() {
        @Override
        public ShowText createFromParcel(Parcel in) {
            return new ShowText(in);
        }

        @Override
        public ShowText[] newArray(int size) {
            return new ShowText[size];
        }
    };

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTextLeft() {
        return textLeft;
    }

    public void setTextLeft(String textLeft) {
        this.textLeft = textLeft;
    }

    public String getTextRight() {
        return textRight;
    }

    public void setTextRight(String textRight) {
        this.textRight = textRight;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(type);
        dest.writeString(textLeft);
        dest.writeString(textRight);
    }
}
